<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','admin');?>
<form name="myform" action="" method="post">
<div class="pad_10">
<div class="table-list">
    <table width="100%" cellspacing="0" >
        <thead>
	<tr>
	<th width="10%">ID</td>
	<th width="15%">用户名</th>
	<th width="30%">内容</th>
	<th width="15%">时间</th>
	<th width="10%">操作</th>
	</tr>
        </thead>
    <tbody>
    

<?php
foreach($datas as $r) {
?>
<tr>
<td align="center"><?php echo $r['id']?></td>
<td align="center"><?php echo $r['user_name']?></td>
<td align="center" title="<?php echo $r['content']?>"><?php echo $r['content']?></td>
<td align="center"><?php echo $r['created_at']?></td>
<td align="center">
	<a href='?m=epaper&c=message&a=delete&id=<?php echo $r['id']?>'
	onClick="return confirm('<?php echo L('confirm', ['message' => new_addslashes(mb_substr($r['content'],0,10))])?>')">
	删除</a>
</td>


</tr>
<?php } ?>
	</tbody>
    </table>

	<div id="pages"><?php echo $pages;?></div>
</div>

</div>
</form>
</body>
</html>
